﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL.Service.Impl;
using DAL.Service;
using System.Collections;

namespace BIZ
{
    public class UserClassOper
    {
        IUserClassService uService = new UserClassServiceImpl();
      
        public object save(object entity)
        {
            return uService.save(entity);
        }

        public IList getUserClasslist(string className, string teacher, string in_s, string in_e, int pageno, int pagesize)
        {
            return uService.getUserClasslist(className, teacher, in_s, in_e, pageno, pagesize);
        }

        public IList getUserClassbyid(int id)
        {
            return uService.getUserClassbyid(id);
        }

        public int deleteUserClass(int id)
        {
            return uService.deleteUserClass(id);
        }

        public bool checkClassName(string className, int id)
        {
            return uService.getCountByClassName(className, id) > 0 ? true : false;
        }
        public IList getClassList()
        {
            return uService.getDdlClass();
        }
    }
}
